package com.winphone.zhgd.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created with IntelliJ IDEA.
 * Package: com.winphone.zhgd.mvc
 * Description : TODO
 * User: zhou
 * Date: 2017/8/2810:42
 * version 1.0.0
 * see:
 */
@Controller
@RequestMapping("/test")
public class TestMVC {

    //选题系统首页
    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public String getTopicAll(ModelMap map){
        map.addAttribute("id","sdjosjdf");
        return "index";
    }

    @RequestMapping(value = "/login",method = RequestMethod.GET)
    public String index(){
        return "index";
    }

    @RequestMapping(value = "/test",method = RequestMethod.GET)
    public String test(){
        return "test";
    }

    @RequestMapping(value = "/userList",method = RequestMethod.GET)
    public String userList(){
        return "modules/sys/userList";
    }

    @RequestMapping(value = "/table",method = RequestMethod.GET)
    public String table(){
        return "modules/table";
    }
}
